// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import ajax from './ajax'

Vue.config.productionTip = false
Vue.use(ElementUI)
let $http = function(method, url, data) {
	return ajax({
		method: method,
    url: 'http://10.0.92.38/application/' + url,
    data: data,
    async: true
	})
}
Vue.prototype.$http = $http
/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App }
})
